package com.kamistoat.meimeistore.commoncore.exception.file;

/**
 * 文件名超出长度限制 异常
 * 直接继承 FileException
 */
public class FileNameLengthLimitExceededException extends FileException {
    private static final long serialVersionUID = 1L;

    /**
     * 默认长度限制
     * @param defaultFileNameLength
     */
    public FileNameLengthLimitExceededException(int defaultFileNameLength) {
        // 向FileException传递描述信息 "upload.filename.exceed.length"
        // FileException再用BaseException的super，则最终构造出 ("file", "upload.filename.exceed.length", new Object[]{defaultFileNameLength}, null) 的异常
        super("upload.filename.exceed.length", new Object[]{defaultFileNameLength});
    }
}
